<?php
/**
 * Created by litong on Date: 2018/12/24 0024 上午 9:22
 */
class MyDestructableClass{
  function __construct()  {
    print "构造函数\n";
    $this->name="MyDestructableClass";
  }

  function __destruct()
  {
    print "销毁".$this->name."\n";
  }
}

$destruct=new MyDestructableClass();
?>